<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>打卡</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="../static/css/typo.css">
    <link rel="stylesheet" href="../static/css/animate.css">
    <link rel="stylesheet" href="../static/lib/prism/prism.css">
    <link rel="stylesheet" href="../static/lib/tocbot/tocbot.css">
    <link rel="stylesheet" href="../static/css/me.css">
</head>
<body>

<!--导航-->
<nav th:replace="_fragments :: menu(6)" class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
</nav>

<!--中间内容-->
<!--中间内容-->

<div class="m-container-small m-padded-tb-big animated fadeIn">
    <div class="ui container">
        <!--header-->
        <div class="ui attached segment m-padded-tb-large">
            <div class="ui labeled button m-margin-tb-tiny">
                <a href="#" th:href="@{/dings/-1}" class="ui basic  button"
                   th:classappend="${-1 == activeTypeId} ? 'teal'">全部</a>
                <div class="ui basic  left pointing label" th:classappend="${-1==activeTypeId} ? 'teal'"
                     th:text="${dingCnt}">24
                </div>
            </div>
            <div class="ui labeled button m-margin-tb-tiny" th:each="user : ${userList}">
                <a href="#" th:href="@{/dings/{id}(id=${user.uid})}" class="ui basic  button"
                   th:classappend="${user.uid==activeTypeId} ? 'teal'" th:text="${user.screenName}">思考与感悟</a>
                <div class="ui basic  left pointing label" th:classappend="${user.uid==activeTypeId} ? 'teal'"
                     th:text="${user.count}">24
                </div>
            </div>
        </div>

        <div class="ui top attached teal segment">
            <div class="ui padded  segment m-padded-tb-large" th:each="ding : ${page.list}">
                <div class="ui middle aligned mobile reversed stackable grid">
                    <!--<div class="ui accordion fluid vertical menu">-->

                    <div class="ui fluid accordion">
                        <div class="title">
                            <div class="ui two column grid">
                                <div class="column"> <span>
                <i class="dropdown icon"></i>
                 <i class="calendar icon"></i><span th:text="${commons.fmtdate(ding.created,'yyyy-MM-dd HH:mm')}">2019-10-01</span>
                  </span></div>
                                <div class="right aligned column">
                                    <div class="ui orange basic left pointing label m-padded-mini"
                                         th:text="${ding.screenName}">完成人
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="content">
                            <div class="ui fluid vertical menu">
                                <div target="_blank" class="m1-text" th:utext="${ding.content}"></div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <!--footer-->
        <div class="ui bottom attached segment" th:if="${page.pages}>1">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <a href="#" th:href="@{'/dings/'+${activeTypeId}(page=${page.pageNum}-1)}"
                       th:unless="${page.isFirstPage}" class="ui mini teal basic button">上一页</a>
                </div>
                <div class="right aligned column">
                    <a href="#" th:href="@{'/dings/'+${activeTypeId}(page=${page.pageNum}+1)}"
                       th:unless="${page.isLastPage}" class="ui mini teal basic button">下一页</a>
                </div>
                <!--   <div th:each="i:${#numbers.sequence(0,page.totalPages)}">
                       <a href="#" th:href="@{'/dings/'+${activeTypeId}(page=${page.number}+i)}"  th:unless="${page.first}" class="ui mini teal basic button">th:${i}</a>
                       ...
                   </div>-->

            </div>
        </div>

    </div>
</div>

<br>
<br>
<!--底部footer-->
<footer th:replace="_fragments :: footer" class="ui inverted vertical segment m-padded-tb-massive">
</footer>
<!--/*/<th:block th:replace="_fragments :: script">/*/-->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/jquery.scrollto@2.1.2/jquery.scrollTo.min.js"></script>

<script src="../static/lib/prism/prism.js"></script>
<script src="../static/lib/tocbot/tocbot.min.js"></script>
<script src="../static/lib/qrcode/qrcode.min.js"></script>
<script src="../static/lib/waypoints/jquery.waypoints.min.js"></script>
<!--/*/</th:block>/*/-->

<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });

    $('.ui.accordion').accordion();

</script>
</body>
</html>